/**
 * @date   2011-3-18
 * @author tianye
 */
package cn.edu.dlut.WingGameDemos;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;

/**
 * @author tianye
 * 
 */
public class WingGameDemos extends Activity implements OnClickListener {

	@Override
	protected void onCreate(Bundle savedInstanceState) {

		super.onCreate(savedInstanceState);
		setContentView(R.layout.main);
		findViewById(R.id.Test1).setOnClickListener(this);
		findViewById(R.id.Test2).setOnClickListener(this);
		findViewById(R.id.Test3).setOnClickListener(this);
		findViewById(R.id.Test4).setOnClickListener(this);
		findViewById(R.id.Test5).setOnClickListener(this);
		findViewById(R.id.Test6).setOnClickListener(this);
		findViewById(R.id.Test7).setOnClickListener(this);
		findViewById(R.id.SoundTest).setOnClickListener(this);

	}

	@Override
	protected void onPause() {
		super.onPause();
	}

	@Override
	protected void onResume() {
		super.onResume();
	}

	@Override
	protected void onDestroy() {
		super.onDestroy();
	}

	@Override
	public void onClick(View v) {
		// TODO Auto-generated method stub
		Intent intent;
		switch (v.getId()) {
		case R.id.Test1:
			intent = new Intent(this, Test1.class);
			startActivity(intent);
			break;
		case R.id.Test2:
			intent = new Intent(this, Test2.class);
			startActivity(intent);
			break;
		case R.id.Test3:
			intent = new Intent(this, Test3.class);
			startActivity(intent);
			break;
		case R.id.Test4:
			intent = new Intent(this, Test4.class);
			startActivity(intent);
			break;
		case R.id.Test5:
			intent = new Intent(this, Test5.class);
			startActivity(intent);
			break;
		case R.id.Test6:
			intent = new Intent(this, Test6.class);
			startActivity(intent);
			break;
		case R.id.Test7:
			intent = new Intent(this, Test7.class);
			startActivity(intent);
			break;
		case R.id.SoundTest:
			intent = new Intent(this, SoundTest.class);
			startActivity(intent);
			break;
		}
	}
}